home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gdevbjc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  8.3 KB  |  289 lines

  1. /* Copyright (C) 1995, 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gdevbjc.h,v 1.2 2000/09/19 19:00:11 lpd Exp $*/
  20.  
  21. #ifndef gdevbjc_INCLUDED
  22. #  define gdevbjc_INCLUDED
  23.  
  24. /*
  25.  * Definitions for Canon BJC printers and the associated drivers.
  26.  *
  27.  * Copyright (C) Yves Arrouye <yves.arrouye@usa.net>, 1995, 1996.
  28.  *
  29.  */
  30.  
  31. /*
  32.  * Please do read the definitions here and change the defaults if needed.
  33.  *
  34.  * Values that can be changed are all called BJC_DEFAULT_* for generic
  35.  * values and BJC600_DEFAULT_* or BJC800_DEFAULT_* for specific values.
  36.  *
  37.  */
  38.  
  39. #ifndef _GDEV_BJC_H
  40. #define _GDEV_CDJ_H
  41.  
  42. /*
  43.  * Drivers names. I don't expect you to change them!
  44.  *
  45.  */
  46.  
  47. #define BJC_BJC600        "bjc600"
  48. #define BJC_BJC800        "bjc800"
  49.  
  50. #define BJC_BJC600_VERSION    2.1700
  51. #define BJC_BJC600_VERSIONSTR    "2.17.00 5/23/96 Yves Arrouye"
  52.  
  53. #define BJC_BJC800_VERSION    2.1700
  54. #define BJC_BJC800_VERSIONSTR    "2.17.00 5/23/96 Yves Arrouye"
  55.  
  56. /*
  57.  * Hardware limits. May be adjusted eventually.
  58.  *
  59.  */
  60.  
  61. #define BJC_PRINT_LIMIT        (3. / 25.4)         /* In inches. */
  62. #define BJC_A3_PRINT_LIMIT    (8. / 25.4)             /* In inches. */
  63.  
  64. #define BJC_HARD_LOWER_LIMIT    (7. / 25.4)        /* In inches. */
  65. #define BJC_USED_LOWER_LIMIT    (9.54 / 25.4)        /* In inches. */
  66. #define BJC_RECD_LOWER_LIMIT    (12.7 / 25.4)        /* In inches. */
  67.  
  68. #ifdef USE_RECOMMENDED_MARGINS
  69. #define BJC_LOWER_LIMIT        BJC_RECD_LOWER_LIMIT
  70. #undef BJC_DEFAULT_CENTEREDAREA
  71. #define BJC_DEFAULT_CENTEREDAREA
  72. #else
  73. #ifdef USE_TIGHT_MARGINS
  74. #define BJC_LOWER_LIMIT        BJC_HARD_LOWER_LIMIT    /* In inches. */
  75. #else
  76. #define BJC_LOWER_LIMIT        BJC_USED_LOWER_LIMIT    /* In inches. */
  77. #endif
  78. #endif
  79.  
  80. #ifndef BJC600_MEDIAWEIGHT_THICKLIMIT
  81. #define BJC600_MEDIAWEIGHT_THICKLIMIT    105        /* In g/m2. */
  82. #endif
  83. #ifndef BJC800_MEDIAWEIGHT_THICKLIMIT
  84. #define BJC800_MEDIAWEIGHT_THICKLIMIT    BJC600_MEDIAWEIGHT_THICKLIMIT
  85. #endif
  86.  
  87. #define BJC_HEAD_ROWS 64    /* Number of heads. Do not change! */
  88.  
  89. /*
  90.  * Margins resulting from the limits specified above.
  91.  *
  92.  * The margins are Left, Bottom, Right, Top and are expressed in inches.
  93.  * You should not change them, better change the limits above.
  94.  *
  95.  */
  96.  
  97. #define BJC_MARGINS_LETTER \
  98.     (6.5 / 25.4), BJC_LOWER_LIMIT, (6.5 / 25.4), BJC_PRINT_LIMIT
  99. #define BJC_MARGINS_A4 \
  100.     (3.4 / 25.4), BJC_LOWER_LIMIT, (3.4 / 25.4), BJC_PRINT_LIMIT
  101. #define BJC_MARGINS_A3 \
  102.     (4.0 / 25.4), BJC_LOWER_LIMIT, (4.0 / 25.4), BJC_A3_PRINT_LIMIT
  103.  
  104. /*
  105.  * Drivers options names.
  106.  *
  107.  */
  108.  
  109. #define BJC_DEVINFO_VERSION        "Version"
  110. #define BJC_DEVINFO_VERSIONSTRING    "VersionString"
  111.  
  112. #define BJC_DEVINFO_OUTPUTFACEUP    "OutputFaceUp"
  113.  
  114. #define BJC_OPTION_MANUALFEED        "ManualFeed"
  115. #define BJC_OPTION_DITHERINGTYPE    "DitheringType"
  116. #define BJC_OPTION_MEDIATYPE        "MediaType"
  117. #define BJC_OPTION_MEDIAWEIGHT        "MediaWeight"
  118. #define BJC_OPTION_PRINTQUALITY        "PrintQuality"
  119. #define BJC_OPTION_COLORCOMPONENTS    "ColorComponents"
  120. #define BJC_OPTION_PRINTCOLORS        "PrintColors"
  121. #define BJC_OPTION_MONOCHROMEPRINT    "MonochromePrint"
  122.  
  123. /*
  124.  * Definitions of parameters (options) values.
  125.  *
  126.  */
  127.  
  128. #define BJC_MEDIA_PLAINPAPER        0
  129. #define BJC_MEDIA_COATEDPAPER        1
  130. #define BJC_MEDIA_TRANSPARENCYFILM    2
  131. #define BJC_MEDIA_BACKPRINTFILM        3    /* Unused */
  132. #define BJC_MEDIA_ENVELOPE        8
  133. #define BJC_MEDIA_CARD            9
  134. #define BJC_MEDIA_OTHER            15
  135.  
  136. #define BJC_DITHER_NONE            0
  137. #define BJC_DITHER_FS            1
  138.  
  139. #define BJC_QUALITY_NORMAL        0
  140. #define BJC_QUALITY_HIGH        1
  141. #define BJC_QUALITY_DRAFT        2
  142. #define BJC_QUALITY_LOW            3
  143.  
  144. #define BJC_COLOR_ALLBLACK        0
  145. #define BJC_COLOR_CYAN            1
  146. #define BJC_COLOR_MAGENTA        2
  147. #define BJC_COLOR_YELLOW        4
  148. #define BJC_COLOR_BLACK            8
  149.  
  150. #define BJC_COLOR_CMY    (BJC_COLOR_CYAN | BJC_COLOR_MAGENTA | BJC_COLOR_YELLOW)
  151. #define BJC_COLOR_CMYK    (BJC_COLOR_CMY | BJC_COLOR_BLACK)
  152.  
  153. /* Some compilers complain if this is a floating point value.... */
  154. #define BJC_RESOLUTION_BASE        90
  155.  
  156. #define BJC_RESOLUTION_LOW        (1 * BJC_RESOLUTION_BASE)
  157. #define BJC_RESOLUTION_MEDIUM        (2 * BJC_RESOLUTION_BASE)
  158. #define BJC_RESOLUTION_NORMAL        (4 * BJC_RESOLUTION_BASE)
  159.  
  160. /*
  161.  * Default values for parameters (long).
  162.  *
  163.  * Generic values are first given, and driver-specific values are by default
  164.  * those generic values.
  165.  *
  166.  */
  167.  
  168. #ifndef BJC_DEFAULT_MEDIATYPE
  169. #define BJC_DEFAULT_MEDIATYPE        BJC_MEDIA_PLAINPAPER
  170. #endif
  171. #ifndef BJC_DEFAULT_PRINTQUALITY
  172. #define BJC_DEFAULT_PRINTQUALITY    BJC_QUALITY_NORMAL
  173. #endif
  174.  
  175. #ifndef BJC_DEFAULT_DITHERINGTYPE
  176. #define BJC_DEFAULT_DITHERINGTYPE    BJC_DITHER_FS
  177. #endif
  178.  
  179. #ifndef BJC_DEFAULT_MANUALFEED
  180. #define BJC_DEFAULT_MANUALFEED        false
  181. #endif
  182. #ifndef BJC_DEFAULT_MONOCHROMEPRINT
  183. #define BJC_DEFAULT_MONOCHROMEPRINT    false
  184. #endif
  185.  
  186. #ifndef BJC_DEFAULT_RESOLUTION
  187. #define BJC_DEFAULT_RESOLUTION        BJC_RESOLUTION_NORMAL
  188. #endif
  189.  
  190. /* If you change the bits per pixel, change the color components. For
  191.    bpp = 1 color components = 1, bpp = 8 color components = { 1, 4},
  192.    bpp = { 16, 24, 32 } color components = 4, comps = { 3 }, bpp = { 24 }. */
  193.  
  194. #ifndef BJC_DEFAULT_BITSPERPIXEL
  195. #define BJC_DEFAULT_BITSPERPIXEL    24
  196. #endif
  197. #ifndef BJC_DEFAULT_COLORCOMPONENTS
  198. #define BJC_DEFAULT_COLORCOMPONENTS    4
  199. #endif
  200.  
  201. /* You should not have to change these defaults */
  202.  
  203. #ifndef BJC_DEFAULT_PRINTCOLORS
  204. #define BJC_DEFAULT_PRINTCOLORS        BJC_COLOR_CMYK
  205. #endif
  206. #ifndef BJC_DEFAULT_MONOCHROMEPRINT
  207. #define BJC_DEFAULT_MONOCHROMEPRINT    false
  208. #endif
  209. #ifndef BJC_DEFAULT_SETMEDIAWEIGHT
  210. #define BJC_DEFAULT_SETMEDIAWEIGHT    0
  211. #endif
  212. #ifndef BJC_DEFAULT_MEDIAWEIGHT
  213. #define BJC_DEFAULT_MEDIAWEIGHT        80
  214. #endif
  215.  
  216. /*
  217.  * Default values for the specific BJC drivers.
  218.  *
  219.  */
  220.  
  221. #ifndef BJC600_DEFAULT_MEDIATYPE
  222. #define BJC600_DEFAULT_MEDIATYPE        BJC_DEFAULT_MEDIATYPE
  223. #endif
  224. #ifndef BJC600_DEFAULT_PRINTQUALITY
  225. #define BJC600_DEFAULT_PRINTQUALITY    BJC_DEFAULT_PRINTQUALITY
  226. #endif
  227. #ifndef BJC600_DEFAULT_DITHERINGTYPE
  228. #define BJC600_DEFAULT_DITHERINGTYPE    BJC_DEFAULT_DITHERINGTYPE
  229. #endif
  230. #ifndef BJC600_DEFAULT_MANUALFEED
  231. #define BJC600_DEFAULT_MANUALFEED    BJC_DEFAULT_MANUALFEED
  232. #endif
  233. #ifndef BJC600_DEFAULT_MONOCHROMEPRINT
  234. #define BJC600_DEFAULT_MONOCHROMEPRINT    BJC_DEFAULT_MONOCHROMEPRINT
  235. #endif
  236. #ifndef BJC600_DEFAULT_RESOLUTION
  237. #define BJC600_DEFAULT_RESOLUTION    BJC_DEFAULT_RESOLUTION
  238. #endif
  239. #ifndef BJC600_DEFAULT_BITSPERPIXEL
  240. #define BJC600_DEFAULT_BITSPERPIXEL    BJC_DEFAULT_BITSPERPIXEL
  241. #endif
  242. #ifndef BJC600_DEFAULT_COLORCOMPONENTS
  243. #define BJC600_DEFAULT_COLORCOMPONENTS    BJC_DEFAULT_COLORCOMPONENTS
  244. #endif
  245. #ifndef BJC600_DEFAULT_PRINTCOLORS
  246. #define BJC600_DEFAULT_PRINTCOLORS    BJC_DEFAULT_PRINTCOLORS
  247. #endif
  248. #ifndef BJC600_DEFAULT_SETMEDIAWEIGHT
  249. #define BJC600_DEFAULT_SETMEDIAWEIGHT    BJC_DEFAULT_SETMEDIAWEIGHT
  250. #endif
  251. #ifndef BJC600_DEFAULT_MEDIAWEIGHT
  252. #define BJC600_DEFAULT_MEDIAWEIGHT    BJC_DEFAULT_MEDIAWEIGHT
  253. #endif
  254.  
  255. #ifndef BJC800_DEFAULT_MEDIATYPE
  256. #define BJC800_DEFAULT_MEDIATYPE        BJC_DEFAULT_MEDIATYPE
  257. #endif
  258. #ifndef BJC800_DEFAULT_PRINTQUALITY
  259. #define BJC800_DEFAULT_PRINTQUALITY    BJC_DEFAULT_PRINTQUALITY
  260. #endif
  261. #ifndef BJC800_DEFAULT_DITHERINGTYPE
  262. #define BJC800_DEFAULT_DITHERINGTYPE    BJC_DEFAULT_DITHERINGTYPE
  263. #endif
  264. #ifndef BJC800_DEFAULT_MANUALFEED
  265. #define BJC800_DEFAULT_MANUALFEED    BJC_DEFAULT_MANUALFEED
  266. #endif
  267. #ifndef BJC800_DEFAULT_RESOLUTION
  268. #define BJC800_DEFAULT_RESOLUTION    BJC_DEFAULT_RESOLUTION
  269. #endif
  270. #ifndef BJC800_DEFAULT_BITSPERPIXEL
  271. #define BJC800_DEFAULT_BITSPERPIXEL    BJC_DEFAULT_BITSPERPIXEL
  272. #endif
  273. #ifndef BJC800_DEFAULT_COLORCOMPONENTS
  274. #define BJC800_DEFAULT_COLORCOMPONENTS    BJC_DEFAULT_COLORCOMPONENTS
  275. #endif
  276. #ifndef BJC800_DEFAULT_PRINTCOLORS
  277. #define BJC800_DEFAULT_PRINTCOLORS    BJC_DEFAULT_PRINTCOLORS
  278. #endif
  279. #ifndef BJC800_DEFAULT_SETMEDIAWEIGHT
  280. #define BJC800_DEFAULT_SETMEDIAWEIGHT    BJC_DEFAULT_SETMEDIAWEIGHT
  281. #endif
  282. #ifndef BJC800_DEFAULT_MEDIAWEIGHT
  283. #define BJC800_DEFAULT_MEDIAWEIGHT    BJC_DEFAULT_MEDIAWEIGHT
  284. #endif
  285.  
  286. #endif /* _GDEVBJC_H */
  287.  
  288. #endif                /* gdevbjc_INCLUDED */
  289.